#ifndef OCL_DEVMAP_INCLUDED
#define OCL_DEVMAP_INCLUDED 1

#include "../ocl/driver.h"
#include "../ocl/context.h"

typedef struct
{
	cl_uint       num_devices;
	cl_device_id *devices;
	cl_uint       reserved;
} ocl_devmap;


ocl_devmap * ocl_devmap_create( const ocl_driver *driver, const char *text );
void         ocl_devmap_delete( ocl_devmap *devmap );
void         ocl_devmap_write( const ocl_devmap *devmap, const ocl_driver *driver, FILE *fp );


int          ocl_context_map(ocl_context        *context, const ocl_devmap   *devmap);



#endif
